#!/bin/bash
# echo $#
# $# 表示脚本后街的参数的个数
m=`echo $RANDOM`
num=$[$m%100]
while [ 1 ]
do
    read -p "Please input a number: " n
    if [ $n -eq $num ]
    then
        break
    elif [ $n -gt $num ]
    then
        echo "你输入的数字太大了"
        continue
    else
        echo "你输入的数字太小了"
        continue
    fi
done
echo "恭喜你猜对了"